home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gsl.idb / usr / freeware / info / gsl-ref.info-4.z / gsl-ref.info-4
Text File  |  2000-10-09  |  51KB  |  1,102 lines

  1. This is gsl-ref.info, produced by Makeinfo version 3.12h from
  2. gsl-ref.texi.
  3.  
  4. INFO-DIR-SECTION Scientific software
  5. START-INFO-DIR-ENTRY
  6. * gsl-ref: (gsl-ref).                   GNU Scientific Library - Reference
  7. END-INFO-DIR-ENTRY
  8.  
  9.    This file documents the GNU Scientific Library.
  10.  
  11.    Copyright (C) 1996, 1997, 1998, 1999 The GSL Project.
  12.  
  13.    Permission is granted to make and distribute verbatim copies of this
  14. manual provided the copyright notice and this permission notice are
  15. preserved on all copies.
  16.  
  17.    Permission is granted to copy and distribute modified versions of
  18. this manual under the conditions for verbatim copying, provided that
  19. the entire resulting derived work is distributed under the terms of a
  20. permission notice identical to this one.
  21.  
  22.    Permission is granted to copy and distribute translations of this
  23. manual into another language, under the above conditions for modified
  24. versions, except that this permission notice may be stated in a
  25. translation approved by the Foundation.
  26.  
  27. 
  28. File: gsl-ref.info,  Node: Raw BLAS Interface,  Next: BLAS References and Further Reading,  Prev: GSL BLAS Interface,  Up: BLAS Support
  29.  
  30. Raw BLAS Interface
  31. ==================
  32.  
  33.    The low-level `gsl_blas_raw' interface is specified in the file
  34. `gsl_blas_raw.h'.
  35.  
  36.    Level 1
  37.  
  38.  - Function: float gsl_blas_raw_sdsdot (size_t N, float ALPHA, const
  39.           float X[], size_t INCX, const float Y[], size_t INCY)
  40.  
  41.  - Function: double gsl_blas_raw_dsdot (size_t N, const float X[],
  42.           size_t INCX, const float Y[], size_t INCY)
  43.  
  44.  - Function: float gsl_blas_raw_sdot (size_t N, const float X[], size_t
  45.           INCX, const float Y[], size_t INCY)
  46.  
  47.  - Function: double gsl_blas_raw_ddot (size_t N, const double X[],
  48.           size_t INCX, const double Y[], size_t INCY)
  49.  
  50.  - Function: void gsl_blas_raw_cdotu (size_t N, const
  51.           gsl_const_complex_packed_array_float X, size_t INCX, const
  52.           gsl_const_complex_packed_array_float Y, size_t INCY,
  53.           gsl_complex_packed_float DOTU)
  54.  
  55.  - Function: void gsl_blas_raw_cdotc (size_t N, const
  56.           gsl_const_complex_packed_array_float X, size_t INCX, const
  57.           gsl_const_complex_packed_array_float Y, size_t INCY,
  58.           gsl_complex_packed_float DOTC)
  59.  
  60.  - Function: void gsl_blas_raw_zdotu (size_t N, const
  61.           gsl_const_complex_packed_array X, size_t INCX, const
  62.           gsl_const_complex_packed_array Y, size_t INCY,
  63.           gsl_complex_packed DOTU)
  64.  
  65.  - Function: void gsl_blas_raw_zdotc (size_t N, const
  66.           gsl_const_complex_packed_array X, size_t INCX, const
  67.           gsl_const_complex_packed_array Y, size_t INCY,
  68.           gsl_complex_packed DOTC)
  69.  
  70.  - Function: float gsl_blas_raw_snrm2 (size_t N, const float X[],
  71.           size_t INCX)
  72.  
  73.  - Function: double gsl_blas_raw_dnrm2 (size_t N, const double X[],
  74.           size_t INCX)
  75.  
  76.  - Function: float gsl_blas_raw_scnrm2 (size_t N, const
  77.           gsl_const_complex_packed_array_float X, size_t INCX)
  78.  
  79.  - Function: double gsl_blas_raw_dznrm2 (size_t N, const
  80.           gsl_const_complex_packed_array X, size_t INCX)
  81.  
  82.  - Function: float gsl_blas_raw_sasum (size_t N, const float X[],
  83.           size_t INCX)
  84.  
  85.  - Function: double gsl_blas_raw_dasum (size_t N, const double X[],
  86.           size_t INCX)
  87.  
  88.  - Function: float gsl_blas_raw_scasum (size_t N, const
  89.           gsl_const_complex_packed_array_float X, size_t INCX)
  90.  
  91.  - Function: double gsl_blas_raw_dzasum (size_t N, const
  92.           gsl_const_complex_packed_array X, size_t INCX)
  93.  
  94.  - Function: CBLAS_INDEX_t gsl_blas_raw_isamax (size_t N, const float
  95.           X[], size_t INCX)
  96.  
  97.  - Function: CBLAS_INDEX_t gsl_blas_raw_idamax (size_t N, const double
  98.           X[], size_t INCX)
  99.  
  100.  - Function: CBLAS_INDEX_t gsl_blas_raw_icamax (size_t N, const
  101.           gsl_const_complex_packed_array_float X, size_t INCX)
  102.  
  103.  - Function: CBLAS_INDEX_t gsl_blas_raw_izamax (size_t N, const
  104.           gsl_const_complex_packed_array X, size_t INCX)
  105.  
  106.  - Function: void gsl_blas_raw_sswap (size_t N, float X[], size_t INCX,
  107.           float Y[], size_t INCY)
  108.  
  109.  - Function: void gsl_blas_raw_dswap (size_t N, double X[], size_t
  110.           INCX, double Y[], size_t INCY)
  111.  
  112.  - Function: void gsl_blas_raw_cswap (size_t N,
  113.           gsl_complex_packed_array_float X, size_t INCX,
  114.           gsl_complex_packed_array_float Y, size_t INCY)
  115.  
  116.  - Function: void gsl_blas_raw_zswap (size_t N,
  117.           gsl_complex_packed_array X, size_t INCX,
  118.           gsl_complex_packed_array Y, size_t INCY)
  119.  
  120.  - Function: void gsl_blas_raw_scopy (size_t N, const float X[], size_t
  121.           INCX, float Y[], size_t INCY)
  122.  
  123.  - Function: void gsl_blas_raw_dcopy (size_t N, const double X[],
  124.           size_t INCX, double Y[], size_t INCY)
  125.  
  126.  - Function: void gsl_blas_raw_ccopy (size_t N, const
  127.           gsl_const_complex_packed_array_float X, size_t INCX,
  128.           gsl_complex_packed_array_float Y, size_t INCY)
  129.  
  130.  - Function: void gsl_blas_raw_zcopy (size_t N, const
  131.           gsl_const_complex_packed_array X, size_t INCX,
  132.           gsl_complex_packed_array Y, size_t INCY)
  133.  
  134.  - Function: void gsl_blas_raw_saxpy (size_t N, float ALPHA, const
  135.           float X[], size_t INCX, float Y[], size_t INCY)
  136.  
  137.  - Function: void gsl_blas_raw_daxpy (size_t N, double ALPHA, const
  138.           double X[], size_t INCX, double Y[], size_t INCY)
  139.  
  140.  - Function: void gsl_blas_raw_caxpy (size_t N, const
  141.           gsl_const_complex_packed_float ALPHA, const
  142.           gsl_const_complex_packed_array_float X, size_t INCX,
  143.           gsl_complex_packed_array_float Y, size_t INCY)
  144.  
  145.  - Function: void gsl_blas_raw_zaxpy (size_t N, const
  146.           gsl_const_complex_packed ALPHA, const
  147.           gsl_const_complex_packed_array X, size_t INCX,
  148.           gsl_complex_packed_array Y, size_t INCY)
  149.  
  150.  - Function: void gsl_blas_raw_srotg (float a[], float b[], float c[],
  151.           float s[])
  152.  
  153.  - Function: void gsl_blas_raw_drotg (double a[], double b[], double
  154.           c[], double s[])
  155.  
  156.  - Function: void gsl_blas_raw_srotmg (float d1[], float d2[], float
  157.           b1[], float B2, float P[])
  158.  
  159.  - Function: void gsl_blas_raw_drotmg (double d1[], double d2[], double
  160.           b1[], double B2, double P[])
  161.  
  162.  - Function: void gsl_blas_raw_srot (size_t N, float X[], size_t INCX,
  163.           float Y[], size_t INCY, const float C, const float S)
  164.  
  165.  - Function: void gsl_blas_raw_drot (size_t N, double X[], size_t INCX,
  166.           double Y[], size_t INCY, const double C, const double S)
  167.  
  168.  - Function: void gsl_blas_raw_srotm (size_t N, float X[], size_t INCX,
  169.           float Y[], size_t INCY, const float P[])
  170.  
  171.  - Function: void gsl_blas_raw_drotm (size_t N, double X[], size_t
  172.           INCX, double Y[], size_t INCY, const double P[])
  173.  
  174.  - Function: void gsl_blas_raw_sscal (size_t N, float ALPHA, float X[],
  175.           size_t INCX)
  176.  
  177.  - Function: void gsl_blas_raw_dscal (size_t N, double ALPHA, double
  178.           X[], size_t INCX)
  179.  
  180.  - Function: void gsl_blas_raw_cscal (size_t N, const
  181.           gsl_const_complex_packed_float ALPHA,
  182.           gsl_complex_packed_array_float X, size_t INCX)
  183.  
  184.  - Function: void gsl_blas_raw_zscal (size_t N, const
  185.           gsl_const_complex_packed ALPHA, gsl_complex_packed_array X,
  186.           size_t INCX)
  187.  
  188.  - Function: void gsl_blas_raw_csscal (size_t N, float ALPHA,
  189.           gsl_complex_packed_array_float X, size_t INCX)
  190.  
  191.  - Function: void gsl_blas_raw_zdscal (size_t N, double ALPHA,
  192.           gsl_complex_packed_array X, size_t INCX)
  193.  
  194.    Level 2
  195.  
  196.  - Function: void gsl_blas_raw_sgemv (CBLAS_TRANSPOSE_t TRANSA, size_t
  197.           M, size_t N, float ALPHA, const float A[], int LDA, const
  198.           float X[], size_t INCX, float BETA, float Y[], size_t INCY)
  199.  
  200.  - Function: void gsl_blas_raw_dgemv (CBLAS_TRANSPOSE_t TRANSA, size_t
  201.           M, size_t N, double ALPHA, const double A[], int LDA, const
  202.           double X[], size_t INCX, double BETA, double Y[], size_t INCY)
  203.  
  204.  - Function: void gsl_blas_raw_cgemv (CBLAS_TRANSPOSE_t TRANSA, size_t
  205.           M, size_t N, const gsl_const_complex_packed_float ALPHA,
  206.           const gsl_const_complex_packed_array_float A, int LDA, const
  207.           gsl_const_complex_packed_array_float X, size_t INCX, const
  208.           gsl_const_complex_packed_float BETA,
  209.           gsl_complex_packed_array_float Y, size_t INCY)
  210.  
  211.  - Function: void gsl_blas_raw_zgemv (CBLAS_TRANSPOSE_t TRANSA, size_t
  212.           M, size_t N, const gsl_const_complex_packed ALPHA, const
  213.           gsl_const_complex_packed_array A, int LDA, const
  214.           gsl_const_complex_packed_array X, size_t INCX, const
  215.           gsl_const_complex_packed BETA, gsl_complex_packed_array Y,
  216.           size_t INCY)
  217.  
  218.  - Function: void gsl_blas_raw_sgbmv (CBLAS_TRANSPOSE_t TRANSA, size_t
  219.           M, size_t N, size_t KL, size_t KU, float ALPHA, const float
  220.           A[], int LDA, const float X[], size_t INCX, float BETA, float
  221.           Y[], size_t INCY)
  222.  
  223.  - Function: void gsl_blas_raw_dgbmv (CBLAS_TRANSPOSE_t TRANSA, size_t
  224.           M, size_t N, size_t KL, size_t KU, double ALPHA, const double
  225.           A[], int LDA, const double X[], size_t INCX, double BETA,
  226.           double Y[], size_t INCY)
  227.  
  228.  - Function: void gsl_blas_raw_cgbmv (CBLAS_TRANSPOSE_t TRANSA, size_t
  229.           M, size_t N, size_t KL, size_t KU, const
  230.           gsl_const_complex_packed_float ALPHA, const
  231.           gsl_const_complex_packed_array_float A, int LDA, const
  232.           gsl_const_complex_packed_array_float X, size_t INCX, const
  233.           gsl_const_complex_packed_float BETA,
  234.           gsl_complex_packed_array_float Y, size_t INCY)
  235.  
  236.  - Function: void gsl_blas_raw_zgbmv (CBLAS_TRANSPOSE_t TRANSA, size_t
  237.           M, size_t N, size_t KL, size_t KU, const
  238.           gsl_const_complex_packed ALPHA, const
  239.           gsl_const_complex_packed_array A, int LDA, const
  240.           gsl_const_complex_packed_array X, size_t INCX, const
  241.           gsl_const_complex_packed BETA, gsl_complex_packed_array Y,
  242.           size_t INCY)
  243.  
  244.  - Function: void gsl_blas_raw_strmv (CBLAS_UPLO_t UPLO,
  245.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  246.           float A[], int LDA, float X[], size_t INCX)
  247.  
  248.  - Function: void gsl_blas_raw_dtrmv (CBLAS_UPLO_t UPLO,
  249.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  250.           double A[], int LDA, double X[], size_t INCX)
  251.  
  252.  - Function: void gsl_blas_raw_ctrmv (CBLAS_UPLO_t UPLO,
  253.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  254.           gsl_const_complex_packed_array_float A, int LDA,
  255.           gsl_complex_packed_array_float X, size_t INCX)
  256.  
  257.  - Function: void gsl_blas_raw_ztrmv (CBLAS_UPLO_t UPLO,
  258.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  259.           gsl_const_complex_packed_array A, int LDA,
  260.           gsl_complex_packed_array X, size_t INCX)
  261.  
  262.  - Function: void gsl_blas_raw_stbmv (CBLAS_UPLO_t UPLO,
  263.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  264.           K, const float A[], int LDA, float X[], size_t INCX)
  265.  
  266.  - Function: void gsl_blas_raw_dtbmv (CBLAS_UPLO_t UPLO,
  267.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  268.           K, const double A[], int LDA, double X[], size_t INCX)
  269.  
  270.  - Function: void gsl_blas_raw_ctbmv (CBLAS_UPLO_t UPLO,
  271.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  272.           K, const gsl_const_complex_packed_array_float A, int LDA,
  273.           gsl_complex_packed_array_float X, size_t INCX)
  274.  
  275.  - Function: void gsl_blas_raw_ztbmv (CBLAS_UPLO_t UPLO,
  276.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  277.           K, const gsl_const_complex_packed_array A, int LDA,
  278.           gsl_complex_packed_array X, size_t INCX)
  279.  
  280.  - Function: void gsl_blas_raw_stpmv (CBLAS_UPLO_t UPLO,
  281.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  282.           float Ap[], float X[], size_t INCX)
  283.  
  284.  - Function: void gsl_blas_raw_dtpmv (CBLAS_UPLO_t UPLO,
  285.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  286.           double Ap[], double X[], size_t INCX)
  287.  
  288.  - Function: void gsl_blas_raw_ctpmv (CBLAS_UPLO_t UPLO,
  289.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  290.           gsl_const_complex_packed_array_float AP,
  291.           gsl_complex_packed_array_float X, size_t INCX)
  292.  
  293.  - Function: void gsl_blas_raw_ztpmv (CBLAS_UPLO_t UPLO,
  294.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  295.           gsl_const_complex_packed_array AP, gsl_complex_packed_array
  296.           X, size_t INCX)
  297.  
  298.  - Function: void gsl_blas_raw_strsv (CBLAS_UPLO_t UPLO,
  299.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  300.           float A[], int LDA, float X[], size_t INCX)
  301.  
  302.  - Function: void gsl_blas_raw_dtrsv (CBLAS_UPLO_t UPLO,
  303.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  304.           double A[], int LDA, double X[], size_t INCX)
  305.  
  306.  - Function: void gsl_blas_raw_ctrsv (CBLAS_UPLO_t UPLO,
  307.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  308.           gsl_const_complex_packed_array_float A, int LDA,
  309.           gsl_complex_packed_array_float X, size_t INCX)
  310.  
  311.  - Function: void gsl_blas_raw_ztrsv (CBLAS_UPLO_t UPLO,
  312.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  313.           gsl_const_complex_packed_array A, int LDA,
  314.           gsl_complex_packed_array X, size_t INCX)
  315.  
  316.  - Function: void gsl_blas_raw_stbsv (CBLAS_UPLO_t UPLO,
  317.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  318.           K, const float A[], int LDA, float X[], size_t INCX)
  319.  
  320.  - Function: void gsl_blas_raw_dtbsv (CBLAS_UPLO_t UPLO,
  321.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  322.           K, const double A[], int LDA, double X[], size_t INCX)
  323.  
  324.  - Function: void gsl_blas_raw_ctbsv (CBLAS_UPLO_t UPLO,
  325.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  326.           K, const gsl_const_complex_packed_array_float A, int LDA,
  327.           gsl_complex_packed_array_float X, size_t INCX)
  328.  
  329.  - Function: void gsl_blas_raw_ztbsv (CBLAS_UPLO_t UPLO,
  330.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, size_t
  331.           K, const gsl_const_complex_packed_array A, int LDA,
  332.           gsl_complex_packed_array X, size_t INCX)
  333.  
  334.  - Function: void gsl_blas_raw_stpsv (CBLAS_UPLO_t UPLO,
  335.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  336.           float Ap[], float X[], size_t INCX)
  337.  
  338.  - Function: void gsl_blas_raw_dtpsv (CBLAS_UPLO_t UPLO,
  339.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  340.           double Ap[], double X[], size_t INCX)
  341.  
  342.  - Function: void gsl_blas_raw_ctpsv (CBLAS_UPLO_t UPLO,
  343.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  344.           gsl_const_complex_packed_array_float AP,
  345.           gsl_complex_packed_array_float X, size_t INCX)
  346.  
  347.  - Function: void gsl_blas_raw_ztpsv (CBLAS_UPLO_t UPLO,
  348.           CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t N, const
  349.           gsl_const_complex_packed_array AP, gsl_complex_packed_array
  350.           X, size_t INCX)
  351.  
  352.  - Function: void gsl_blas_raw_ssymv (CBLAS_UPLO_t UPLO, size_t N,
  353.           float ALPHA, const float A[], int LDA, const float X[],
  354.           size_t INCX, float BETA, float Y[], size_t INCY)
  355.  
  356.  - Function: void gsl_blas_raw_dsymv (CBLAS_UPLO_t UPLO, size_t N,
  357.           double ALPHA, const double A[], int LDA, const double X[],
  358.           size_t INCX, double BETA, double Y[], size_t INCY)
  359.  
  360.  - Function: void gsl_blas_raw_ssbmv (CBLAS_UPLO_t UPLO, size_t N,
  361.           size_t K, float ALPHA, const float A[], int LDA, const float
  362.           X[], size_t INCX, float BETA, float Y[], size_t INCY)
  363.  
  364.  - Function: void gsl_blas_raw_dsbmv (CBLAS_UPLO_t UPLO, size_t N,
  365.           size_t K, double ALPHA, const double A[], int LDA, const
  366.           double X[], size_t INCX, double BETA, double Y[], size_t INCY)
  367.  
  368.  - Function: void gsl_blas_raw_sspmv (CBLAS_UPLO_t UPLO, size_t N,
  369.           float ALPHA, const float Ap[], const float X[], size_t INCX,
  370.           float BETA, float Y[], size_t INCY)
  371.  
  372.  - Function: void gsl_blas_raw_dspmv (CBLAS_UPLO_t UPLO, size_t N,
  373.           double ALPHA, const double Ap[], const double X[], size_t
  374.           INCX, double BETA, double Y[], size_t INCY)
  375.  
  376.  - Function: void gsl_blas_raw_sger (size_t M, size_t N, float ALPHA,
  377.           const float X[], size_t INCX, const float Y[], size_t INCY,
  378.           float A[], int LDA)
  379.  
  380.  - Function: void gsl_blas_raw_dger (size_t M, size_t N, double ALPHA,
  381.           const double X[], size_t INCX, const double Y[], size_t INCY,
  382.           double A[], int LDA)
  383.  
  384.  - Function: void gsl_blas_raw_ssyr (CBLAS_UPLO_t UPLO, size_t N, float
  385.           ALPHA, const float X[], size_t INCX, float A[], int LDA)
  386.  
  387.  - Function: void gsl_blas_raw_dsyr (CBLAS_UPLO_t UPLO, size_t N,
  388.           double ALPHA, const double X[], size_t INCX, double A[], int
  389.           LDA)
  390.  
  391.  - Function: void gsl_blas_raw_sspr (CBLAS_UPLO_t UPLO, size_t N, float
  392.           ALPHA, const float X[], size_t INCX, float Ap[])
  393.  
  394.  - Function: void gsl_blas_raw_dspr (CBLAS_UPLO_t UPLO, size_t N,
  395.           double ALPHA, const double X[], size_t INCX, double Ap[])
  396.  
  397.  - Function: void gsl_blas_raw_ssyr2 (CBLAS_UPLO_t UPLO, size_t N,
  398.           float ALPHA, const float X[], size_t INCX, const float Y[],
  399.           size_t INCY, float A[], int LDA)
  400.  
  401.  - Function: void gsl_blas_raw_dsyr2 (CBLAS_UPLO_t UPLO, size_t N,
  402.           double ALPHA, const double X[], size_t INCX, const double
  403.           Y[], size_t INCY, double A[], int LDA)
  404.  
  405.  - Function: void gsl_blas_raw_sspr2 (CBLAS_UPLO_t UPLO, size_t N,
  406.           float ALPHA, const float X[], size_t INCX, const float Y[],
  407.           size_t INCY, float A[])
  408.  
  409.  - Function: void gsl_blas_raw_dspr2 (CBLAS_UPLO_t UPLO, size_t N,
  410.           double ALPHA, const double X[], size_t INCX, const double
  411.           Y[], size_t INCY, double A[])
  412.  
  413.  - Function: void gsl_blas_raw_chemv (CBLAS_UPLO_t UPLO, size_t N,
  414.           const gsl_const_complex_packed_float ALPHA, const
  415.           gsl_const_complex_packed_array_float A, int LDA, const
  416.           gsl_const_complex_packed_array_float X, size_t INCX, const
  417.           gsl_const_complex_packed_float BETA,
  418.           gsl_complex_packed_array_float Y, size_t INCY)
  419.  
  420.  - Function: void gsl_blas_raw_zhemv (CBLAS_UPLO_t UPLO, size_t N,
  421.           const gsl_const_complex_packed ALPHA, const
  422.           gsl_const_complex_packed_array A, int LDA, const
  423.           gsl_const_complex_packed_array X, size_t INCX, const
  424.           gsl_const_complex_packed BETA, gsl_complex_packed_array Y,
  425.           size_t INCY)
  426.  
  427.  - Function: void gsl_blas_raw_chbmv (CBLAS_UPLO_t UPLO, size_t N,
  428.           size_t K, const gsl_const_complex_packed_float ALPHA, const
  429.           gsl_const_complex_packed_array_float A, int LDA, const
  430.           gsl_const_complex_packed_array_float X, size_t INCX, const
  431.           gsl_const_complex_packed_float BETA,
  432.           gsl_complex_packed_array_float Y, size_t INCY)
  433.  
  434.  - Function: void gsl_blas_raw_zhbmv (CBLAS_UPLO_t UPLO, size_t N,
  435.           size_t K, const gsl_const_complex_packed ALPHA, const
  436.           gsl_const_complex_packed_array A, int LDA, const
  437.           gsl_const_complex_packed_array X, size_t INCX, const
  438.           gsl_const_complex_packed BETA, gsl_complex_packed_array Y,
  439.           size_t INCY)
  440.  
  441.  - Function: void gsl_blas_raw_chpmv (CBLAS_UPLO_t UPLO, size_t N,
  442.           const gsl_const_complex_packed_float ALPHA, const
  443.           gsl_const_complex_packed_array_float AP, const
  444.           gsl_const_complex_packed_array_float X, size_t INCX, const
  445.           gsl_const_complex_packed_float BETA,
  446.           gsl_complex_packed_array_float Y, size_t INCY)
  447.  
  448.  - Function: void gsl_blas_raw_zhpmv (CBLAS_UPLO_t UPLO, size_t N,
  449.           const gsl_const_complex_packed ALPHA, const
  450.           gsl_const_complex_packed_array AP, const
  451.           gsl_const_complex_packed_array X, size_t INCX, const
  452.           gsl_const_complex_packed BETA, gsl_complex_packed_array Y,
  453.           size_t INCY)
  454.  
  455.  - Function: void gsl_blas_raw_cgeru (size_t M, size_t N, const
  456.           gsl_const_complex_packed_float ALPHA, const
  457.           gsl_const_complex_packed_array_float X, size_t INCX, const
  458.           gsl_const_complex_packed_array_float Y, size_t INCY,
  459.           gsl_complex_packed_array_float A, int LDA)
  460.  
  461.  - Function: void gsl_blas_raw_zgeru (size_t M, size_t N, const
  462.           gsl_const_complex_packed ALPHA, const
  463.           gsl_const_complex_packed_array X, size_t INCX, const
  464.           gsl_const_complex_packed_array Y, size_t INCY,
  465.           gsl_complex_packed_array A, int LDA)
  466.  
  467.  - Function: void gsl_blas_raw_cgerc (size_t M, size_t N, const
  468.           gsl_const_complex_packed_float ALPHA, const
  469.           gsl_const_complex_packed_array_float X, size_t INCX, const
  470.           gsl_const_complex_packed_array_float Y, size_t INCY,
  471.           gsl_complex_packed_array_float A, int LDA)
  472.  
  473.  - Function: void gsl_blas_raw_zgerc (size_t M, size_t N, const
  474.           gsl_const_complex_packed ALPHA, const
  475.           gsl_const_complex_packed_array X, size_t INCX, const
  476.           gsl_const_complex_packed_array Y, size_t INCY,
  477.           gsl_complex_packed_array A, int LDA)
  478.  
  479.  - Function: void gsl_blas_raw_cher (CBLAS_UPLO_t UPLO, size_t N, float
  480.           ALPHA, const gsl_const_complex_packed_array_float X, size_t
  481.           INCX, gsl_complex_packed_array_float A, int LDA)
  482.  
  483.  - Function: void gsl_blas_raw_zher (CBLAS_UPLO_t UPLO, size_t N,
  484.           double ALPHA, const gsl_const_complex_packed_array X, size_t
  485.           INCX, gsl_complex_packed_array A, int LDA)
  486.  
  487.  - Function: void gsl_blas_raw_chpr (CBLAS_UPLO_t UPLO, size_t N, float
  488.           ALPHA, const gsl_const_complex_packed_array_float X, size_t
  489.           INCX, gsl_complex_packed_array_float A)
  490.  
  491.  - Function: void gsl_blas_raw_zhpr (CBLAS_UPLO_t UPLO, size_t N,
  492.           double ALPHA, const gsl_const_complex_packed_array X, size_t
  493.           INCX, gsl_complex_packed_array A)
  494.  
  495.  - Function: void gsl_blas_raw_cher2 (CBLAS_UPLO_t UPLO, size_t N,
  496.           const gsl_const_complex_packed_float ALPHA, const
  497.           gsl_const_complex_packed_array_float X, size_t INCX, const
  498.           gsl_const_complex_packed_array_float Y, size_t INCY,
  499.           gsl_complex_packed_array_float A, int LDA)
  500.  
  501.  - Function: void gsl_blas_raw_zher2 (CBLAS_UPLO_t UPLO, size_t N,
  502.           const gsl_const_complex_packed ALPHA, const
  503.           gsl_const_complex_packed_array X, size_t INCX, const
  504.           gsl_const_complex_packed_array Y, size_t INCY,
  505.           gsl_complex_packed_array A, int LDA)
  506.  
  507.  - Function: void gsl_blas_raw_chpr2 (CBLAS_UPLO_t UPLO, size_t N,
  508.           const gsl_const_complex_packed_float ALPHA, const
  509.           gsl_const_complex_packed_array_float X, size_t INCX, const
  510.           gsl_const_complex_packed_array_float Y, size_t INCY,
  511.           gsl_complex_packed_array_float AP)
  512.  
  513.  - Function: void gsl_blas_raw_zhpr2 (CBLAS_UPLO_t UPLO, size_t N,
  514.           const gsl_const_complex_packed ALPHA, const
  515.           gsl_const_complex_packed_array X, size_t INCX, const
  516.           gsl_const_complex_packed_array Y, size_t INCY,
  517.           gsl_complex_packed_array AP)
  518.  
  519.    Level 3
  520.  
  521.  - Function: void gsl_blas_raw_sgemm (CBLAS_TRANSPOSE_t TRANSA,
  522.           CBLAS_TRANSPOSE_t TRANSB, size_t M, size_t N, size_t K, float
  523.           ALPHA, const float A[], int LDA, const float B[], int LDB,
  524.           float BETA, float C[], int LDC)
  525.  
  526.  - Function: void gsl_blas_raw_dgemm (CBLAS_TRANSPOSE_t TRANSA,
  527.           CBLAS_TRANSPOSE_t TRANSB, size_t M, size_t N, size_t K,
  528.           double ALPHA, const double A[], int LDA, const double B[],
  529.           int LDB, double BETA, double C[], int LDC)
  530.  
  531.  - Function: void gsl_blas_raw_cgemm (CBLAS_TRANSPOSE_t TRANSA,
  532.           CBLAS_TRANSPOSE_t TRANSB, size_t M, size_t N, size_t K, const
  533.           gsl_const_complex_packed_float ALPHA, const
  534.           gsl_const_complex_packed_array_float A, int LDA, const
  535.           gsl_const_complex_packed_array_float B, int LDB, const
  536.           gsl_const_complex_packed_float BETA,
  537.           gsl_complex_packed_array_float C, int LDC)
  538.  
  539.  - Function: void gsl_blas_raw_zgemm (CBLAS_TRANSPOSE_t TRANSA,
  540.           CBLAS_TRANSPOSE_t TRANSB, size_t M, size_t N, size_t K, const
  541.           gsl_const_complex_packed ALPHA, const
  542.           gsl_const_complex_packed_array A, int LDA, const
  543.           gsl_const_complex_packed_array B, int LDB, const
  544.           gsl_const_complex_packed BETA, gsl_complex_packed_array C,
  545.           int LDC)
  546.  
  547.  - Function: void gsl_blas_raw_ssymm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  548.           UPLO, size_t M, size_t N, float ALPHA, const float A[], int
  549.           LDA, const float B[], int LDB, float BETA, float C[], int LDC)
  550.  
  551.  - Function: void gsl_blas_raw_dsymm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  552.           UPLO, size_t M, size_t N, double ALPHA, const double A[], int
  553.           LDA, const double B[], int LDB, double BETA, double C[], int
  554.           LDC)
  555.  
  556.  - Function: void gsl_blas_raw_csymm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  557.           UPLO, size_t M, size_t N, const
  558.           gsl_const_complex_packed_float ALPHA, const
  559.           gsl_const_complex_packed_array_float A, int LDA, const
  560.           gsl_const_complex_packed_array_float B, int LDB, const
  561.           gsl_const_complex_packed_float BETA,
  562.           gsl_complex_packed_array_float C, int LDC)
  563.  
  564.  - Function: void gsl_blas_raw_zsymm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  565.           UPLO, size_t M, size_t N, const gsl_const_complex_packed
  566.           ALPHA, const gsl_const_complex_packed_array A, int LDA, const
  567.           gsl_const_complex_packed_array B, int LDB, const
  568.           gsl_const_complex_packed BETA, gsl_complex_packed_array C,
  569.           int LDC)
  570.  
  571.  - Function: void gsl_blas_raw_ssyrk (CBLAS_UPLO_t UPLO,
  572.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, float ALPHA,
  573.           const float A[], int LDA, float BETA, float C[], int LDC)
  574.  
  575.  - Function: void gsl_blas_raw_dsyrk (CBLAS_UPLO_t UPLO,
  576.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, double ALPHA,
  577.           const double A[], int LDA, double BETA, double C[], int LDC)
  578.  
  579.  - Function: void gsl_blas_raw_csyrk (CBLAS_UPLO_t UPLO,
  580.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, const
  581.           gsl_const_complex_packed_float ALPHA, const
  582.           gsl_const_complex_packed_array_float A, int LDA, const
  583.           gsl_const_complex_packed_float BETA,
  584.           gsl_complex_packed_array_float C, int LDC)
  585.  
  586.  - Function: void gsl_blas_raw_zsyrk (CBLAS_UPLO_t UPLO,
  587.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, const
  588.           gsl_const_complex_packed ALPHA, const
  589.           gsl_const_complex_packed_array A, int LDA, const
  590.           gsl_const_complex_packed BETA, gsl_complex_packed_array C,
  591.           int LDC)
  592.  
  593.  - Function: void gsl_blas_raw_ssyr2k (CBLAS_UPLO_t UPLO,
  594.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, float ALPHA,
  595.           const float A[], int LDA, const float B[], int LDB, float
  596.           BETA, float C[], int LDC)
  597.  
  598.  - Function: void gsl_blas_raw_dsyr2k (CBLAS_UPLO_t UPLO,
  599.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, double ALPHA,
  600.           const double A[], int LDA, const double B[], int LDB, double
  601.           BETA, double C[], int LDC)
  602.  
  603.  - Function: void gsl_blas_raw_csyr2k (CBLAS_UPLO_t UPLO,
  604.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, const
  605.           gsl_const_complex_packed_float ALPHA, const
  606.           gsl_const_complex_packed_array_float A, int LDA, const
  607.           gsl_const_complex_packed_array_float B, int LDB, const
  608.           gsl_const_complex_packed_float BETA,
  609.           gsl_complex_packed_array_float C, int LDC)
  610.  
  611.  - Function: void gsl_blas_raw_zsyr2k (CBLAS_UPLO_t UPLO,
  612.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, const
  613.           gsl_const_complex_packed ALPHA, const
  614.           gsl_const_complex_packed_array A, int LDA, const
  615.           gsl_const_complex_packed_array B, int LDB, const
  616.           gsl_const_complex_packed BETA, gsl_complex_packed_array C,
  617.           int LDC)
  618.  
  619.  - Function: void gsl_blas_raw_strmm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  620.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  621.           size_t N, float ALPHA, const float A[], int LDA, float B[],
  622.           int LDB)
  623.  
  624.  - Function: void gsl_blas_raw_dtrmm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  625.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  626.           size_t N, double ALPHA, const double A[], int LDA, double
  627.           B[], int LDB)
  628.  
  629.  - Function: void gsl_blas_raw_ctrmm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  630.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  631.           size_t N, const gsl_const_complex_packed_float ALPHA, const
  632.           gsl_const_complex_packed_array_float A, int LDA,
  633.           gsl_complex_packed_array_float B, int LDB)
  634.  
  635.  - Function: void gsl_blas_raw_ztrmm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  636.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  637.           size_t N, const gsl_const_complex_packed ALPHA, const
  638.           gsl_const_complex_packed_array A, int LDA,
  639.           gsl_complex_packed_array B, int LDB)
  640.  
  641.  - Function: void gsl_blas_raw_strsm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  642.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  643.           size_t N, float ALPHA, const float A[], int LDA, float B[],
  644.           int LDB)
  645.  
  646.  - Function: void gsl_blas_raw_dtrsm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  647.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  648.           size_t N, double ALPHA, const double A[], int LDA, double
  649.           B[], int LDB)
  650.  
  651.  - Function: void gsl_blas_raw_ctrsm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  652.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  653.           size_t N, const gsl_const_complex_packed_float ALPHA, const
  654.           gsl_const_complex_packed_array_float A, int LDA,
  655.           gsl_complex_packed_array_float B, int LDB)
  656.  
  657.  - Function: void gsl_blas_raw_ztrsm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  658.           UPLO, CBLAS_TRANSPOSE_t TRANSA, CBLAS_DIAG_t DIAG, size_t M,
  659.           size_t N, const gsl_const_complex_packed ALPHA, const
  660.           gsl_const_complex_packed_array A, int LDA,
  661.           gsl_complex_packed_array B, int LDB)
  662.  
  663.  - Function: void gsl_blas_raw_chemm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  664.           UPLO, size_t M, size_t N, const
  665.           gsl_const_complex_packed_float ALPHA, const
  666.           gsl_const_complex_packed_array_float A, int LDA, const
  667.           gsl_const_complex_packed_array_float B, int LDB, const
  668.           gsl_const_complex_packed_float BETA,
  669.           gsl_complex_packed_array_float C, int LDC)
  670.  
  671.  - Function: void gsl_blas_raw_zhemm (CBLAS_SIDE_t SIDE, CBLAS_UPLO_t
  672.           UPLO, size_t M, size_t N, const gsl_const_complex_packed
  673.           ALPHA, const gsl_const_complex_packed_array A, int LDA, const
  674.           gsl_const_complex_packed_array B, int LDB, const
  675.           gsl_const_complex_packed BETA, gsl_complex_packed_array C,
  676.           int LDC)
  677.  
  678.  - Function: void gsl_blas_raw_cherk (CBLAS_UPLO_t UPLO,
  679.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, float ALPHA,
  680.           const gsl_const_complex_packed_array_float A, int LDA, float
  681.           BETA, gsl_complex_packed_array_float C, int LDC)
  682.  
  683.  - Function: void gsl_blas_raw_zherk (CBLAS_UPLO_t UPLO,
  684.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, double ALPHA,
  685.           const gsl_const_complex_packed_array A, int LDA, double BETA,
  686.           gsl_complex_packed_array C, int LDC)
  687.  
  688.  - Function: void gsl_blas_raw_cher2k (CBLAS_UPLO_t UPLO,
  689.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, const
  690.           gsl_const_complex_packed_float ALPHA, const
  691.           gsl_const_complex_packed_array_float A, int LDA, const
  692.           gsl_const_complex_packed_array_float B, int LDB, float BETA,
  693.           gsl_complex_packed_array_float C, int LDC)
  694.  
  695.  - Function: void gsl_blas_raw_zher2k (CBLAS_UPLO_t UPLO,
  696.           CBLAS_TRANSPOSE_t TRANS, size_t N, size_t K, const
  697.           gsl_const_complex_packed ALPHA, const
  698.           gsl_const_complex_packed_array A, int LDA, const
  699.           gsl_const_complex_packed_array B, int LDB, double BETA,
  700.           gsl_complex_packed_array C, int LDC)
  701.  
  702. 
  703. File: gsl-ref.info,  Node: BLAS References and Further Reading,  Prev: Raw BLAS Interface,  Up: BLAS Support
  704.  
  705. References and Further Reading
  706. ==============================
  707.  
  708.    Information on the BLAS standards, including both the legacy and
  709. draft interface standards, is available online from the BLAS Technical
  710. Forum web-site.
  711.  
  712.      `BLAS Technical Forum'
  713.      <http://www.netlib.org/cgi-bin/checkout/blast/blast.pl>
  714.  
  715. The following papers contain the specifications for Level 1, Level 2 and
  716. Level 3 BLAS.
  717.  
  718.      C. Lawson, R. Hanson, D. Kincaid, F. Krogh, "Basic Linear Algebra
  719.      Subprograms for Fortran Usage", `ACM Transactions on Mathematical
  720.      Software', Vol. 5 (1979), Pages 308-325.
  721.  
  722.      J.J. Dongarra, J. DuCroz, S. Hammarling, R. Hanson, "An Extended
  723.      Set of Fortran Basic Linear Algebra Subprograms", `ACM
  724.      Transactions on Mathematical Software', Vol. 14, No. 1 (1988),
  725.      Pages 1-32.
  726.  
  727.      J.J. Dongarra, I. Duff, J. DuCroz, S. Hammarling, "A Set of Level
  728.      3 Basic Linear Algebra Subprograms", `ACM Transactions on
  729.      Mathematical Software', Vol. 16 (1990), Pages 1-28.
  730.  
  731. 
  732. File: gsl-ref.info,  Node: Linear Algebra,  Next: Eigensystems,  Prev: BLAS Support,  Up: Top
  733.  
  734. Linear Algebra
  735. **************
  736.  
  737.    This chapter describes functions for solving linear systems.  The
  738. library provides simple linear algebra operations which operate directly
  739. on the `gsl_vector' and `gsl_matrix' objects.  These are meant for
  740. "small" systems where simple algorithms are acceptable.
  741.  
  742.    Anyone interested in large systems will want to use the sophisticated
  743. routines found in LAPACK. The Fortran version of LAPACK is recommended
  744. as the standard package for linear algebra.  It supports blocked
  745. algorithms, specialized data representations and other optimizations.
  746.  
  747. * Menu:
  748.  
  749. * LU Decomposition::
  750. * QR Decomposition::
  751. * QR Decomposition with Column Pivoting::
  752. * Singular Value Decomposition::
  753. * Cholesky Decomposition::
  754. * Householder solver for linear systems::
  755. * Tridiagonal Systems::
  756. * Linear Algebra References and Further Reading::
  757.  
  758. 
  759. File: gsl-ref.info,  Node: LU Decomposition,  Next: QR Decomposition,  Up: Linear Algebra
  760.  
  761. LU Decomposition
  762. ================
  763.  
  764.    A general square matrix A has an LU decomposition into upper and
  765. lower triangular matrices,
  766.  
  767.      P A = L U
  768.  
  769. where P is a permutation matrix, L is unit lower triangular matrix and
  770. R is upper triangular matrix. For square matrices this decomposition
  771. can be used to convert the linear system A x = b into a pair of
  772. triangular systems (L y = P b, U x = y), which can be solved by forward
  773. and back-substitution.
  774.  
  775.  - Function: int gsl_linalg_LU_decomp (gsl_matrix * A, gsl_permutation
  776.           * P, int *SIGNUM)
  777.      This function factorizes the square matrix A into the LU
  778.      decomposition PA = LU.  On output the diagonal and upper
  779.      triangular part of the input matrix A contain the matrix R. The
  780.      lower triangular part of the input matrix (excluding the diagonal)
  781.      contains L.  The diagonal elements of L are unity, and are not
  782.      stored.
  783.  
  784.      The permutation matrix P is encoded in the permutation P. The j-th
  785.      column of the matrix P is given by the k-th column of the identity
  786.      matrix, where k = p_j the j-th element of the permutation vector.
  787.      The sign of the permutation is given by SIGNUM. It has the value
  788.      (-1)^n, where n is the number of interchanges in the permutation.
  789.  
  790.      The algorithm used in the decomposition is Gaussian Elimination
  791.      with partial pivoting (Golub & Van Loan, `Matrix Computations',
  792.      Algorithm 3.4.1).
  793.  
  794.  - Function: int gsl_linalg_LU_solve (const gsl_matrix * LU, const
  795.           gsl_permutation * P, const gsl_vector * B, gsl_vector * X)
  796.      This function solves the system A x = b using the LU decomposition
  797.      of A into (LU, P) given by `gsl_linalg_LU_decomp'.
  798.  
  799.  - Function: int gsl_linalg_LU_svx (const gsl_matrix * LU, const
  800.           gsl_permutation * P, gsl_vector * X)
  801.      This function solves the system A x = b in-place using the LU
  802.      decomposition of A into (LU,P). On input X should contain the
  803.      right-hand side b, which is replaced by the solution on output.
  804.  
  805.  - Function: int gsl_linalg_LU_refine (const gsl_matrix * A, const
  806.           gsl_matrix * LU, const gsl_permutation * P, const gsl_vector
  807.           * B, gsl_vector * X, gsl_vector * RESIDUAL)
  808.      This function applies an iterative improvement to X, the solution
  809.      of A x = b, using the LU decomposition of A into (LU,P). The
  810.      initial residual r = A x - b is also computed and stored in
  811.      RESIDUAL.
  812.  
  813.  - Function: int gsl_linalg_LU_invert (const gsl_matrix * LU, const
  814.           gsl_permutation * P, gsl_matrix * INVERSE)
  815.      This function computes the inverse of a matrix A from its LU
  816.      decomposition (LU,P), storing the result in the matrix INVERSE.
  817.      The inverse is computed by solving the system A x = b for each
  818.      column of the identity matrix.
  819.  
  820.  - Function: double gsl_linalg_LU_det (gsl_matrix * LU, int SIGNUM)
  821.      This function computes the determinant of a matrix A from its LU
  822.      decomposition, LU. The determinant is computed as the product of
  823.      the diagonal elements of U and the sign of the row permutation
  824.      SIGNUM.
  825.  
  826.  - Function: double gsl_linalg_LU_lndet (gsl_matrix * LU)
  827.      This function computes the logarithm of the absolute value of the
  828.      determinant of a matrix A, \ln|det(A)|, from its LU decomposition,
  829.      LU.  This function may be useful if the direct computation of the
  830.      determinant would overflow or underflow.
  831.  
  832.  - Function: int gsl_linalg_LU_sgndet (gsl_matrix * LU, int SIGNUM)
  833.      This function computes the sign of the determinant of a matrix A,
  834.      sign(det(A)), from its LU decomposition, LU.
  835.  
  836. 
  837. File: gsl-ref.info,  Node: QR Decomposition,  Next: QR Decomposition with Column Pivoting,  Prev: LU Decomposition,  Up: Linear Algebra
  838.  
  839. QR Decomposition
  840. ================
  841.  
  842.    A general rectangular M-by-N matrix A has a QR decomposition into
  843. the product of an orthogonal M-by-M square matrix Q (where Q^T Q = I)
  844. and an M-by-N right-triangular matrix R,
  845.  
  846.      A = Q R
  847.  
  848. This decomposition can be used to convert the linear system A x = b
  849. into the triangular system R x = Q^T b, which can be solved by
  850. back-substitution. Another use of the QR decomposition is to compute an
  851. orthonormal basis for a set of vectors. The first N columns of Q form
  852. an orthonormal basis for the range of A, ran(A), when A has full column
  853. rank.
  854.  
  855.  - Function: int gsl_linalg_QR_decomp (gsl_matrix * A, gsl_vector * TAU)
  856.      This function factorizes the M-by-N matrix A into the QR
  857.      decomposition A = Q R.  On output the diagonal and upper
  858.      triangular part of the input matrix contain the matrix R. The
  859.      vector TAU and the columns of the lower triangular part of the
  860.      matrix A contain the Householder coefficients and Householder
  861.      vectors which encode the orthogonal matrix Q.  The vector TAU must
  862.      be of length k=\min(M,N). The matrix Q is related to these
  863.      components by, Q = Q_k ... Q_2 Q_1 where Q_i = I - \tau_i v_i
  864.      v_i^T and v_i is the Householder vector v_i =
  865.      (0,...,1,A(i+1,i),A(i+2,i),...,A(m,i)). This is the same storage
  866.      scheme as used by LAPACK.
  867.  
  868.      The algorithm used to perform the decomposition is Householder QR
  869.      (Golub & Van Loan, `Matrix Computations', Algorithm 5.2.1).
  870.  
  871.  - Function: int gsl_linalg_QR_solve (const gsl_matrix * QR, const
  872.           gsl_vector * TAU, const gsl_vector * B, gsl_vector * X)
  873.      This function solves the system A x = b using the QR decomposition
  874.      of A into (QR, TAU) given by `gsl_linalg_QR_decomp'.
  875.  
  876.  - Function: int gsl_linalg_QR_svx (const gsl_matrix * QR, const
  877.           gsl_vector * TAU, gsl_vector * X)
  878.      This function solves the system A x = b in-place using the QR
  879.      decomposition of A into (QR,TAU). On input X should contain the
  880.      right-hand side b, which is replaced by the solution on output.
  881.  
  882.  - Function: int gsl_linalg_QR_QTvec (const gsl_matrix * QR, const
  883.           gsl_vector * TAU, gsl_vector * V)
  884.      This function applies the matrix Q^T encoded in the decomposition
  885.      (QR,TAU) to the vector V, storing the result Q^T v in V.  The
  886.      matrix multiplication is carried out directly using the encoding
  887.      of the Householder vectors without needing to form the full matrix
  888.      Q^T.
  889.  
  890.  - Function: int gsl_linalg_QR_Rsolve (const gsl_matrix * QR, const
  891.           gsl_vector * B, gsl_vector * X)
  892.      This function solves the triangular system R x = b for X. It may
  893.      be useful if the product b' = Q^T b has already been computed
  894.      using `gsl_linalg_QR_QTvec'.
  895.  
  896.  - Function: int gsl_linalg_QR_Rsvx (const gsl_matrix * QR, gsl_vector
  897.           * X)
  898.      This function solves the triangular system R x = b for X in-place.
  899.      On input X should contain the right-hand side b and is replaced by
  900.      the solution on output. This function may be useful if the product
  901.      b' = Q^T b has already been computed using `gsl_linalg_QR_QTvec'.
  902.  
  903.  - Function: int gsl_linalg_QR_unpack (const gsl_matrix * QR, const
  904.           gsl_vector * TAU, gsl_matrix * Q, gsl_matrix * R)
  905.      This function unpacks the encoded QR decomposition (QR,TAU) into
  906.      the matrices Q and R, where Q is M-by-M and R is M-by-N.
  907.  
  908.  - Function: int gsl_linalg_QR_QRsolve (gsl_matrix * Q, gsl_matrix * R,
  909.           const gsl_vector * B, gsl_vector * X)
  910.      This function solves the system R x = Q^T b for X. It can be used
  911.      when the QR decomposition of a matrix is available in unpacked
  912.      form as (Q,R).
  913.  
  914.  - Function: int gsl_linalg_QR_update (gsl_matrix * Q, gsl_matrix * R,
  915.           gsl_vector * W, const gsl_vector * V)
  916.      This function performs a rank-1 update w v^T of the QR
  917.      decomposition (Q, R). The update is given by Q'R' = Q R + w v^T
  918.      where the output matrices Q' and R' are also orthogonal and right
  919.      triangular. Note that W is destroyed by the update.
  920.  
  921.  - Function: int gsl_linalg_R_solve (const gsl_matrix * R, const
  922.           gsl_vector * B, gsl_vector * X)
  923.      This function solves the triangular system R x = b for the N-by-N
  924.      matrix R.
  925.  
  926.  - Function: int gsl_linalg_R_svx (const gsl_matrix * R, gsl_vector * X)
  927.      This function solves the triangular system R x = b in-place. On
  928.      input X should contain the right-hand side b, which is replaced by
  929.      the solution on output.
  930.  
  931. 
  932. File: gsl-ref.info,  Node: QR Decomposition with Column Pivoting,  Next: Singular Value Decomposition,  Prev: QR Decomposition,  Up: Linear Algebra
  933.  
  934. QR Decomposition with Column Pivoting
  935. =====================================
  936.  
  937.    The QR decomposition can be extended to the rank deficient case by
  938. introducing a column permutation P,
  939.  
  940.      A P = Q R
  941.  
  942. The first r columns of this Q form an orthonormal basis for the range
  943. of A for a matrix with column rank r.  This decomposition can also be
  944. used to convert the linear system A x = b into the triangular system R
  945. y = Q^T b, x = P y, which can be solved by back-substitution and
  946. permutation.  We denote the QR decomposition with column pivoting by
  947. QRP^T since A = Q R P^T.
  948.  
  949.  - Function: int gsl_linalg_QRPT_decomp (gsl_matrix * A, gsl_vector *
  950.           TAU, gsl_permutation * P, int *SIGNUM)
  951.      This function factorizes the M-by-N matrix A into the QRP^T
  952.      decomposition A = Q R P^T.  On output the diagonal and upper
  953.      triangular part of the input matrix contain the matrix R. The
  954.      permutation matrix P is stored in the permutation P.  The sign of
  955.      the permutation is given by SIGNUM. It has the value (-1)^n, where
  956.      n is the number of interchanges in the permutation. The vector TAU
  957.      and the columns of the lower triangular part of the matrix A
  958.      contain the Householder coefficients and vectors which encode the
  959.      orthogonal matrix Q.  The vector TAU must be of length
  960.      k=\min(M,N). The matrix Q is related to these components by, Q =
  961.      Q_k ... Q_2 Q_1 where Q_i = I - \tau_i v_i v_i^T and v_i is the
  962.      Householder vector v_i = (0,...,1,A(i+1,i),A(i+2,i),...,A(m,i)).
  963.      This is the same storage scheme as used by LAPACK.
  964.  
  965.      The algorithm used to perform the decomposition is Householder QR
  966.      with column pivoting (Golub & Van Loan, `Matrix Computations',
  967.      Algorithm 5.4.1).
  968.  
  969.  - Function: int gsl_linalg_QRPT_solve (const gsl_matrix * QR, const
  970.           gsl_vector * TAU, const gsl_permutation * P, const gsl_vector
  971.           * B, gsl_vector * X)
  972.      This function solves the system A x = b using the QRP^T
  973.      decomposition of A into (QR, TAU, P) given by
  974.      `gsl_linalg_QRPT_decomp'.
  975.  
  976.  - Function: int gsl_linalg_QRPT_svx (const gsl_matrix * QR, const
  977.           gsl_vector * TAU, const gsl_permutation * P, gsl_vector * X)
  978.      This function solves the system A x = b in-place using the QRP^T
  979.      decomposition of A into (QR,TAU,P). On input X should contain the
  980.      right-hand side b, which is replaced by the solution on output.
  981.  
  982.  - Function: int gsl_linalg_QRPT_QRsolve (const gsl_matrix * Q, const
  983.           gsl_matrix * R, const gsl_permutation * P, const gsl_vector *
  984.           B, gsl_vector * X)
  985.      This function solves the system R P^T x = Q^T b for X. It can be
  986.      used when the QR decomposition of a matrix is available in
  987.      unpacked form as (Q,R).
  988.  
  989.  - Function: int gsl_linalg_QRPT_update (gsl_matrix * Q, gsl_matrix *
  990.           R, const gsl_permutation * P, gsl_vector * U, const
  991.           gsl_vector * V)
  992.      This function performs a rank-1 update w v^T of the QRP^T
  993.      decomposition (Q, R,P). The update is given by Q'R' = Q R + w v^T
  994.      where the output matrices Q' and R' are also orthogonal and right
  995.      triangular. Note that W is destroyed by the update. The
  996.      permutation P is not changed.
  997.  
  998.  - Function: int gsl_linalg_QRPT_Rsolve (const gsl_matrix * QR, const
  999.           gsl_permutation * P, const gsl_vector * B, gsl_vector * X)
  1000.      This function solves the triangular system R P^T x = b for the
  1001.      N-by-N matrix R contained in QR.
  1002.  
  1003.  - Function: int gsl_linalg_QRPT_Rsvx (const gsl_matrix * QR, const
  1004.           gsl_permutation * P, gsl_vector * X)
  1005.      This function solves the triangular system R P^T x = b in-place
  1006.      for the N-by-N matrix R contained in QR. On input X should contain
  1007.      the right-hand side b, which is replaced by the solution on output.
  1008.  
  1009. 
  1010. File: gsl-ref.info,  Node: Singular Value Decomposition,  Next: Cholesky Decomposition,  Prev: QR Decomposition with Column Pivoting,  Up: Linear Algebra
  1011.  
  1012. Singular Value Decomposition
  1013. ============================
  1014.  
  1015.    A general rectangular M-by-N matrix A has a singular value
  1016. decomposition (SVD) into the product of an M-by-N orthogonal matrix U,
  1017. an N-by-N diagonal matrix of singular values S and the transpose of an
  1018. M-by-M orthogonal square matrix Q,
  1019.  
  1020.      A = U S Q^T
  1021.  
  1022. The singular values \sigma_i = S_{ii} are all non-negative and are
  1023. generally chosen to form a non-increasing sequence \sigma_1 >= \sigma_2
  1024. >= ... >= \sigma_N >= 0.
  1025.  
  1026.    The singular value decomposition of a matrix has many practical uses.
  1027. The condition number of the matrix is given by the ratio of the largest
  1028. singular value to the smallest singular value. The presence of a zero
  1029. singular value indicates that the matrix is singular. The number of
  1030. non-zero singular values indicates the rank of the matrix.  In practice
  1031. singular value decomposition of a rank-deficient matrix will not produce
  1032. exact zeroes for singular values, due to finite numerical precision.
  1033. Small singular values should be edited by chosing a suitable tolerance.
  1034.  
  1035.  - Function: int gsl_linalg_SV_decomp (gsl_matrix * A, gsl_matrix * Q,
  1036.           gsl_vector * S)
  1037.      This function factorizes the M-by-N matrix A into the singular
  1038.      value decomposition A = U S Q^T. On output the matrix A is
  1039.      replaced by U. The diagonal elements of the singular value matrix
  1040.      S are stored in the vector S. The singular values are non-negative
  1041.      and form a non-increasing sequence from S_1 to S_N. The matrix Q
  1042.      contains the elements of Q in untransposed form. To form the
  1043.      product U S Q^T it is necessary to take the transpose of Q.
  1044.  
  1045.      The algorithm used in the decomposition is One-Sided Jacobi
  1046.      orthogonalization (see references for details).
  1047.  
  1048.  - Function: int gsl_linalg_SV_solve (gsl_matrix * U, gsl_matrix * Q,
  1049.           gsl_vector * S, const gsl_vector * B, gsl_vector * X)
  1050.      This function solves the system A x = b using the singular value
  1051.      decomposition of A given by `gsl_linalg_SV_decomp', (U, S, Q).
  1052.  
  1053.      Only non-zero singular values are used in computing the solution.
  1054.      The parts of the solution corresponding to singular values of zero
  1055.      are ignored.  Other singular values can be edited out by setting
  1056.      them to zero before calling this function.
  1057.  
  1058.      In the over-determined case where A has more rows than columns the
  1059.      system is solved in the least squares sense, returning the solution
  1060.      X which minimizes ||A x - b||_2.
  1061.  
  1062. 
  1063. File: gsl-ref.info,  Node: Cholesky Decomposition,  Next: Householder solver for linear systems,  Prev: Singular Value Decomposition,  Up: Linear Algebra
  1064.  
  1065. Cholesky Decomposition
  1066. ======================
  1067.  
  1068.    A symmetric, positive definite square matrix A has a Cholesky
  1069. decomposition into a product of a lower triagular matrix L and its
  1070. transpose L^T,
  1071.  
  1072.      A = L L^T
  1073.  
  1074. This is sometimes referred to as taking the square-root of a matrix. The
  1075. Cholesky decomposition can only be carried out when all the eigenvalues
  1076. of the matrix are positive.  This decomposition can be used to convert
  1077. the linear system A x = b into a pair of triangular systems (L y = b,
  1078. L^T x = y), which can be solved by forward and back-substitution.
  1079.  
  1080.  - Function: int gsl_linalg_cholesky_decomp (gsl_matrix * A)
  1081.      This function factorizes the positive-definite square matrix A
  1082.      into the Cholesky decomposition A = L L^T. On output the diagonal
  1083.      and lower triangular part of the input matrix A contain the matrix
  1084.      L. The upper triangular part of the input matrix contains L^T, the
  1085.      diagonal terms being identical for both L and L^T.  If the matrix
  1086.      is not positive-definite then the decomposition will fail,
  1087.      returning the error code `GSL_EDOM'.
  1088.  
  1089.  - Function: int gsl_linalg_cholesky_solve (const gsl_matrix *
  1090.           CHOLESKY, const gsl_vector * B, gsl_vector * X)
  1091.      This function solves the system A x = b using the Cholesky
  1092.      decomposition of A into the matrix CHOLESKY given by
  1093.      `gsl_linalg_cholesky_decomp'.
  1094.  
  1095.  - Function: int gsl_linalg_cholesky_svx (const gsl_matrix * CHOLESKY,
  1096.           gsl_vector * X)
  1097.      This function solves the system A x = b in-place using the
  1098.      Cholesky decomposition of A into the matrix CHOLESKY. On input X
  1099.      should contain the right-hand side b, which is replaced by the
  1100.      solution on output.
  1101.  
  1102.